<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/resources/plantillas/encuesta.xhtml">
    <ui:define name="content">
        <h:panelGrid style="text-align: left;">
            <br/>
            <h:outputText value="Iniciar sesión" style="font-size: 14px;font-weight: bold"/>
            <br/>
            <h:form>
                <h:panelGrid columns="3">
                    <h:outputText value="Usuario" />
                    <h:inputText id="usr" value="#{LoginBean.userName}" required="true" size="10"/>
                    <h:message for="usr" style="color:red"/>
                    <h:outputText value="Contraseña" />
                    <h:inputSecret id="pass" value="#{LoginBean.userPassword}" required="true" size="10"/>
                    <h:message for="pass" style="color:red"/>
                    <h:commandButton value="Entrar" action="#{LoginBean.validate}" />
                    <h:outputText style="color:red" value="#{LoginBean.mensaje}" />
                </h:panelGrid>
            </h:form>
            <br/>
            <br/>
        </h:panelGrid>
    </ui:define>
</ui:composition>
</html>

